package com.fxc.demo4;

import com.fxc.demo2.UserService;
import com.fxc.demo2.UserServiceImpl;
import com.fxc.demo3.Host;
import com.fxc.demo3.Rent;

public class Client {
    public static void main(String[] args) {
        UserService userService=new UserServiceImpl();
        ProxyInvocationHandler handler = new ProxyInvocationHandler();
        handler.setTarget(userService);
        UserService proxy = (UserService) handler.getProxy();
        proxy.add(); 
    }
}
